#!/usr/bin/python
# -*- coding: UTF-8 -*-
import logging
class MyError(StandardError):
    pass

def test(s):
    raise MyError(s)
if __name__ == '__main__':
    try:
        test("hello error")
    except MyError,e:
        print "hello world"
        # logging.exception(e)
    except StandardError,e:
        logging.exception(e)
    finally:
        print "hello mill"